import { GloabMethods } from "@/utils";

export const useAppMethods = (app) => {
    Object.keys(GloabMethods).forEach((keys) => {
        const $_k = keys.includes("$") && keys[0] === '$';
        if ($_k) {
            app.prototype[keys] = GloabMethods[keys];
        } else {
            app.prototype["$" + keys] = GloabMethods[keys];
        }
    });
};
